package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 3:08:52 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbTipoNotiDet generated by hbm2java
 */
@Entity
@Table(name = "TB_TIPO_NOTI_DET", schema = "CATALOGOS")
public class TbTipoNotiDet implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private TbTipoNotiDetId id;
	private TbTipoNotif tbTipoNotif;
	private String dtipNotiDet;
	private String cclase;
	private String cusuario;
	private Date fhingreso;

	public TbTipoNotiDet() {
	}

	public TbTipoNotiDet(TbTipoNotiDetId id, TbTipoNotif tbTipoNotif,
			String dtipNotiDet, String cclase, String cusuario, Date fhingreso) {
		this.id = id;
		this.tbTipoNotif = tbTipoNotif;
		this.dtipNotiDet = dtipNotiDet;
		this.cclase = cclase;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
	}

	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "ctipoNotif", column = @Column(name = "C_TIPO_NOTIF", nullable = false, length = 1)),
			@AttributeOverride(name = "ctipNotiDet", column = @Column(name = "C_TIP_NOTI_DET", nullable = false, length = 2)) })
	public TbTipoNotiDetId getId() {
		return this.id;
	}

	public void setId(TbTipoNotiDetId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "C_TIPO_NOTIF", nullable = false, insertable = false, updatable = false)
	public TbTipoNotif getTbTipoNotif() {
		return this.tbTipoNotif;
	}

	public void setTbTipoNotif(TbTipoNotif tbTipoNotif) {
		this.tbTipoNotif = tbTipoNotif;
	}

	@Column(name = "D_TIP_NOTI_DET", nullable = false, length = 25)
	public String getDtipNotiDet() {
		return this.dtipNotiDet;
	}

	public void setDtipNotiDet(String dtipNotiDet) {
		this.dtipNotiDet = dtipNotiDet;
	}

	@Column(name = "C_CLASE", nullable = false, length = 1)
	public String getCclase() {
		return this.cclase;
	}

	public void setCclase(String cclase) {
		this.cclase = cclase;
	}

	@Column(name = "C_USUARIO", nullable = false, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", nullable = false, length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

}
